package com.nq.activaity.entity;

import cn.afterturn.easypoi.excel.annotation.Excel;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;

/**
 * @Description: 积分任务表
 * @Author: jeecg-boot
 * @Date:   2024-11-07
 * @Version: V1.0
 */
@Data
@TableName("st_integral_task")
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = false)
public class StIntegralTask implements Serializable {
    private static final long serialVersionUID = 1L;

	// 首次充值任务
	public static final String TASK_TYPE_FIRST_RECHARGE = "first-recharge";
	// 普通充值任务
	public static final String TASK_TYPE_NORMAL_RECHARGE = "normal-recharge";
	// 邀请任务
	public static final String TASK_TYPE_INVITATION = "invitation";
	// 购买股票任务
	public static final String TASK_TYPE_BUY_STOCKS = "buy-stocks";

	/**主键*/
	@TableId(type = IdType.AUTO)
    private Integer id;
	/**创建人*/
    private String createBy;
	/**创建日期*/
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    private Date createTime;
	/**任务类型*/
	@Excel(name = "任务类型", width = 15)
    private String taskType;
	/**任务名称*/
	@Excel(name = "任务名称", width = 15)
    private String taskName;
	/**最小数量*/
	@Excel(name = "最小数量", width = 15)
    private Integer minNum;
	/**最大数量*/
	@Excel(name = "最大数量", width = 15)
    private Integer maxNum;
	/**奖励积分数量*/
	@Excel(name = "奖励积分数量", width = 15)
    private Integer integral;
	/**有效性 0 有效 1 无效*/
	@Excel(name = "有效性 0 有效 1 无效", width = 15)
    private Integer status;
}
